package com.lesso.yjy.sunflower.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;

@Data
public class EmployeeAttendanceRuleDTO implements Serializable {
    private static final long serialVersionUID = 20250706L;

    private Long id;

    @NotNull(message = "员工ID不能为空")
    private Long employeeId;

    @NotBlank(message = "考勤规则编码不能为空")
    private String ruleCode;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate effectiveDate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate expiryDate;
}
